﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" Runat="Server">
    <p style="background-position: center center; height: 322px; width: 516px; background-image: url('Images/welcome.jpg'); background-repeat: no-repeat;"></p>
<div class="login" style=" margin-left:10px;">
    <table style="width:100%">
        <tr>
            <td colspan="3" style="height: 20px">
                <asp:Label ID="Label1" runat="server" style="color: #FF0000"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 63px">
                用户名:</td>
            <td style="width: 211px">
                <asp:TextBox ID="TextBox1" runat="server" style="margin-left: 0px" 
                    Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBox1" ErrorMessage="用户名不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 63px">
                密码:</td>
            <td style="width: 211px">
                <asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                                
                                <table width="100%">
                                <tr>
                                <td>
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="register.aspx">注册一个新账号</asp:HyperLink>
                                </td>
                                <td style="text-align: right" >
                    <asp:Button  ID="Button1" runat="server" onclick="Button1_Click" Text="登录" 
                                    style="text-align: right"  />
                                    </td>
                                    </tr>
                                    </table>
            </td>
            
        </tr>

    </table>
 </div>
</asp:Content>

